{% extends "house/base.html" %}
{% block title %}Баланс{% endblock %}
{% block content_title %}{% endblock %}

{% block sub_menu %}
<li><a href="">Баланс</a></li>
{% endblock %} 

{% block mainmenuitem_3 %}class="mainMenuSelectedItem"{% endblock %}

{% block main %}
<h2>Баланс</h2>
{% include "house/date_select.html" %}
<table class="summaryInfo" style="width: 50%">
  <tr><td class="title">Оплата консьержа</td><td></td></tr>
  <tr><td></td><td></td></tr>
  <tr><td class="label"><span>{{processed_month_verbose}} {{processed_year}} г.
                        {% if current_year == processed_year and current_month == processed_month %}(текущий){% endif %}
                        </span></td><td><strong>{{monthly_amount}} р.</strong></td></tr>
  <tr><td></td><td></td></tr>
  <tr><td class="title">Оплата консьержа</td><td></td></tr>
  <tr><td></td><td></td></tr>  
  {% for item in month_summ_list %}
    <tr><td class="label"><span>{{item.month_verbose}} {{item.year}} г.
                            {% if current_year == item.year and current_month == item.month %}(текущий){% endif %}
    </span></td><td>{{ item.summ }} р.</td></tr>
    <tr><td></td><td> </td></tr>
  {% endfor %}
  <tr><td class="label"><span>Итого</span></td><td><strong>{{ next_month_summ }} р.</strong></td></tr>
  <tr><td></td><td></td></tr> 
  <tr><td class="title">Журнал расходов</td><td></td></tr>
  <tr><td></td><td></td></tr>  
  <tr><td class="label"><span>Баланс</span></td><td><strong>{{balance_full}} р.</strong></td></tr>
  <tr><td></td><td></td></tr> 
</TABLE>

{% endblock %}
